package cn.zhf.shop.service;

import cn.zhf.shop.entity.ConsoleUser;
import cn.zhf.shop.entity.Message;
import cn.zhf.shop.entity.search.ConsoleUserSearch;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.validation.constraints.NotBlank;
import java.util.HashMap;
import java.util.List;

@Service
public interface ConsoleUserService {

    Message<?> appendUser(ConsoleUser consoleUser);

    Message<?> getByUsername(String username, String password);

    Message<?> removeById(Integer userID);

    Message<ConsoleUser> selectByUserId(@NotBlank(message = "UserId不得为空") int userId);

    Message<List<ConsoleUser>> selectAll();

    Message<?> updatePwd(int id, String pwd);

    int deleteByPrimaryKey(Integer userId);

    int insert(ConsoleUser record);

    int insertSelective(ConsoleUser record);

    ConsoleUser selectByPrimaryKey(Integer userId);

    Message updateByPrimaryKeySelective(ConsoleUser record);

    int updateByPrimaryKey(ConsoleUser record);

    Message<List<ConsoleUser>> selectByUserIdAndOrgIdAndUserGroupAndUsername(String str);

    Message<List<ConsoleUser>> selectByUserIdAndOrgIdAndUserGroupAndUsername2(Integer userId, Integer orgId, Integer userGroup, String username);

    Message<List<ConsoleUser>> selectByUserGroup(int userGroup);

    Message<List<ConsoleUser>> selectByUserGroup1(int userGroup);

    Message judgmentUserName(String userName);

    Message mohuConditionSearch(ConsoleUserSearch consoleUserSearch);

    Message getAllHeadreallyNameandNameByuserGroup(int userGroup);

    Message getAllHeadreallyNameandNameByUserId(int userId);

    Message addSubordinate(int userId, ConsoleUser consoleUser);

    Message judgmentupdateuserName(int userid, String userName);

    Message getSubordinateById(int userId);

    Message selectAllexceptUsereGroup2();

    Message userGroup2MohuSearch(String str);

    Message getSubordinateByIdMohuSearch(int userId, String str);

    Message selectByUserId2();
}







